Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

185
Vistas
How to output to the console "SUCCESS" after a successful launch, and "ERROR" after an unsuccessful one?

The question is:

I'm currently working on Node.js with the Puppeteer library and I need to print "SUCCESS" to the console after a successful run and "ERROR" after a failed run. But I don't quite understand how to do it.

I will be grateful to everyone for help.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

console.log('Success'); console.log('error'); https://nodejs.dev/learn/output-to-the-command-line-using-nodejs

about 4 years ago · Juan Pablo Isaza Denunciar

0

You could wrap the whole thing in a try...catch

try {
  // Your Code Here
  console.log('Success')
} catch (e) {
  console.log('Error')
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda